import turtle

def star():
    turtle.clear()
    turtle.up()
    turtle.goto(pos)
    turtle.down()
    turtle.color('red')
    turtle.begin_fill()
    for i in range(5):
        turtle.fd(20)
        turtle.rt(144)
    turtle.end_fill()
    pos[1] -= 10
    turtle.ontimer(star, 300)
def click(x, y):
    if pos[1] <=310:
        pos[1]+=15

# onscreenclick
turtle.tracer(False)
pos = [0, 300]
star()
turtle.onscreenclick(click)
turtle.done()